		function changePostocdeAnywhereFields()
		{
			//below code works for brochures
			
			if ($("#postcode_other").length > 0){
				
				//checks to see if the forms have #postcode_other div if so call a different hide script
				
				if(document.getElementById('yesPostcodeAnywhere').checked)
				{
					showUK();
				}
				else
				{
					showOtherWorld();
				}

			} else {

				//default action to take
							
				if(document.getElementById('yesPostcodeAnywhere').checked)
				{
					showPostocdeAnywhereFields();
				}
				else
				{
					hidePostocdeAnywhereFields();
				}				
				
			}	
			
			
		}
		
		function showOtherWorld() {
			
			$("#postcodeLookUpDiv").hide();
			$("#postcode_other").show();
			
		}
		
		function showUK() {

			$("#postcodeLookUpDiv").show();
			$("#postcode_other").hide();
			
		}			

		function hidePostocdeAnywhereFields()
		{			
			// Hide the postcode selector div
			var elPostcodeLookUpDiv = document.getElementById('postcodeLookUpDiv');
			elPostcodeLookUpDiv.style.display = 'none';			
		
			// Hide the free text country field div
			var elCountryFreeTextDiv = document.getElementById('countryFreeTextDiv');
			elCountryFreeTextDiv.style.display = 'none';
			
			// Hide the county label div
			var elCountyLabelDiv = document.getElementById('countyLabelDiv');
			elCountyLabelDiv.style.display = 'none';
			
			// Clear free text country field value
			var elCountry = document.getElementById('country');
			elCountry.value= "";
														
			// Show the selectable country field div
			var elCountrySelectDiv = document.getElementById('countrySelectDiv');
			elCountrySelectDiv.style.display = 'block';
			
			// Show the state label div
			var elStateLabelDiv = document.getElementById('stateLabelDiv');
			elStateLabelDiv.style.display = 'block';
			
			// Make the selectable country field required
			set_required(['countrySelect']);			
		}
						
		
		function showPostocdeAnywhereFields()
		{
			// Show the postcode lookup field div
			var elPostcodeLookUpDiv = document.getElementById('postcodeLookUpDiv');
			elPostcodeLookUpDiv.style.display = 'block';
			
			// Show the free text country field div
			var elCountryFreeTextDiv = document.getElementById('countryFreeTextDiv');
			elCountryFreeTextDiv.style.display = 'block';
			
			// Show the county label div
			var elCountyLabelDiv = document.getElementById('countyLabelDiv');
			elCountyLabelDiv.style.display = 'block';
									
			// Hide the selectable country field div
			var elCountrySelectDiv = document.getElementById('countrySelectDiv');
			elCountrySelectDiv.style.display = 'none';
			
			// Hide the state label div
			var elStateLabelDiv = document.getElementById('stateLabelDiv');
			elStateLabelDiv.style.display = 'none';
			
			// Set the uneditable free text country field to UK
			var elCountry = document.getElementById('country');
			elCountry.value= "United Kingdom";
			
			// Clear the selectable country field 
			var elCountrySelect = document.getElementById('countrySelect');
			elCountrySelect.value= "";
			
			// Make the selectable country field not required
			unset_required(['countrySelect']);
						
		}
		
		function changeDestinationOtherFields()
		{
			if(document.getElementById('destinationOther').checked)
			{
				showDestinationOther();
			}
			else
			{
				hideDestinationOther();
			}
		}
		
		function hideDestinationOther()
		{			
			// Hide the destination other div
			var elDestinationOtherDiv = document.getElementById('destinationOtherDiv');
			elDestinationOtherDiv.style.display = 'none';
						
			// Clear destination other field value
			var elDestinationOtherInput = document.getElementById('destinationOtherInput');
			elDestinationOtherInput.value= "";
			
			// Make destination other field not required
			unset_required(['destinationOtherInput']);								
		}
		
		function showDestinationOther()
		{
			// Show the destination other div
			var elDestinationOtherDiv = document.getElementById('destinationOtherDiv');
			elDestinationOtherDiv.style.display = 'block';
						
			// Make destination other field required
			set_required(['destinationOtherInput']);											
		}
		
		
		
		function changeHolidayTypeOtherFields()
		{
			if(document.getElementById('holidayTypeOther').checked)
			{
				showHolidayTypeOther();
			}
			else
			{
				hideHolidayTypeOther();
			}
		}
		
		function hideHolidayTypeOther()
		{			
			// Hide the holidayType other div
			var elHolidayTypeOtherDiv = document.getElementById('holidayTypeOtherDiv');
			elHolidayTypeOtherDiv.style.display = 'none';
						
			// Clear holidayType other field value
			var elHolidayTypeOtherInput = document.getElementById('holidayTypeOtherInput');
			elHolidayTypeOtherInput.value= "";
			
			// Make holidayType other field not required
			unset_required(['holidayTypeOtherInput']);								
		}
		
		function showHolidayTypeOther()
		{
			// Show the holidayType other div
			var elHolidayTypeOtherDiv = document.getElementById('holidayTypeOtherDiv');
			elHolidayTypeOtherDiv.style.display = 'block';
						
			// Make holidayType other field required
			set_required(['holidayTypeOtherInput']);											
		}
		
		
		function changeTravellersClubFields()
		{
			if(document.getElementById('joinClub').checked)
			{
				travellersClubChecked();
			}
			else
			{
				travellersClubUnChecked();
			}
		}
		
		function travellersClubUnChecked()
		{						
			unset_required(['emailAddr']);								
		}
		
		function travellersClubChecked()
		{						
			set_required(['emailAddr']);								
		}

		function changeBrochureEmailField()
		{
			var eltEmail = document.getElementById('emailAddr');
			
			if (eltEmail != null)
			{
				var sEmail = eltEmail.value;
				
				if(sEmail != '')
				{
					showContactSpecialistDiv();
				}
				else
				{
					hideContactSpecialistDiv();
				}
			}
		}
		
		function hideContactSpecialistDiv()
		{			
			var eltDiv = document.getElementById('contactSpecialistDiv');
			eltDiv.style.display = 'none';
						
			// Clear contact specialist field 
			var eltContact = document.getElementById('contactSpecialist');
			eltContact.checked = false;
		}
		
		function showContactSpecialistDiv()
		{
			var eltDiv = document.getElementById('contactSpecialistDiv');
			eltDiv.style.display = 'block';
		}
		
		
		function changeContactSpecialistField()
		{
			if(document.getElementById('contactSpecialist').checked)
			{
				contactSpecialistChecked();
			}
			else
			{
				contactSpecialistUnChecked();
			}
		}
		
		function contactSpecialistUnChecked()
		{						
			var eltComments = document.getElementById('comments');
			eltComments.disabled = true;
			eltComments.style.background = 'lightgrey';
		}
		
		function contactSpecialistChecked()
		{						
			var eltComments = document.getElementById('comments');
			eltComments.disabled = false;
			eltComments.style.background = '';
		}

		
		
